package main
import(
	"fmt"
)
//输出金字塔 
func main(){
	var n int
	fmt.Println("输入一个整数 打印金字塔")
	//fmt.Scanf("%d",&n)
	fmt.Scanln(&n)
	var pymaridStr string = pymarid(n)
	fmt.Printf("%v",pymaridStr)
}

func pymarid(n int) string{
	var pymaridStr string = ""
	for i:=1;i<=n;i++{
		for j:=1;j<=(n+i-1);j++{
			if(j <= n-i){
				pymaridStr += " "
				continue
			}else{
				pymaridStr += "*"
			}
		}
		pymaridStr += "\n"
	}
	return pymaridStr
}
